package com.ldc.service.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ldc.model.Article;

import java.util.List;

/**
 * 功能描述
 *
 * @author liudi
 * @since 2023/7/23
 */
public interface ArticleService extends IService<Article> {

    List<Article> findListBy(LambdaQueryWrapper<Article> queryWrapper);

    List<Article> findListByIds(List<Long> ids);

    int batchDeleteBy(LambdaQueryWrapper<Article> queryWrapper);

    int batchDeleteByIds(List<Long> ids);

    List<Long> getArticleIds(List<Long> ids);

    IPage<Article> findPageBy(int page, int limit, LambdaQueryWrapper<Article> queryWrapper);
}
